package com.concurrency.ThreadLocal;

public class TimeBean {

	private long registTime;
	public static ThreadLocal<Long> threadLocal = new ThreadLocal<Long>();

	public long getRegistTime() {
		return threadLocal.get();
	}

	public void setRegistTime(long registTime) {
		if(threadLocal.get()==null)
			threadLocal.set(registTime);
	}
	
	
}
